﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuanNianJXXCX.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ChaXunGL.QuanNianJXXCX" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
            font-size: 12px;
        }

        #img table tr td div {
            cursor: pointer;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            // $("#condition").css("height", height);
        });


        function rowClick() {
            if (gvShenJingXX.GetFocusedRowIndex() != -1) {
                //alert(gvShenJingXX.GetRowKey(gvShenJingXX.GetFocusedRowIndex()));
                if (gvShenJingXX.GetFocusedRowIndex() != -1) {
                    hdCollection.Set("ID", gvShenJingXX.GetRowKey(gvShenJingXX.GetFocusedRowIndex()));
                    //loadpanel1.Show();
                    ASPxCallback1.PerformCallback("setinfo");
                }
            }
        }
        function exportexcel()
        {
            ASPxCallback1.PerformCallback('export');
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            var specialIdentity = arr[2];
            var msg = arr[3].split('-');
            if (msg[0] == 'True') {
                alert(msg[1]);
            }
            hdCollection.Set("type", type);
            if (state == 'True') {
                if (type == "setinfo") {
                    //加载信息
                    txtYongHuH2.SetText(arr[4]);
                    txtYongHuM2.SetText(arr[5]);
                    txtHuanNeiHW.SetText(arr[6]);
                    txJingBianH.SetText(arr[7]);
                    txtDiZhi.SetText(arr[8]);
                    txtXingZhengQ.SetText(arr[9]);
                    txtJingLeiX.SetText(arr[10]);
                    txtJingXingZ.SetText(arr[11]);
                    txtJingBiaoJ.SetText(arr[12]);
                    txtLiuYu.SetText(arr[13]);
                    txtYeWuY.SetText(arr[14]);
                    txtGuanLiBM.SetText(arr[15]);
                    txtShuiZiYFQ.SetText(arr[16]);
                    txtCengCi.SetText(arr[17]);
                    txtShenDu.SetText(arr[18]);
                    txtQuShuiYT.SetText(arr[19]);
                    txtShuiLiFP.SetText(arr[20]);
                    txtKouJing.SetText(arr[21]);
                    txtHangYeFL.SetText(arr[22]);
                    memoBeiZhu.SetText(arr[23]);
                    txtYuanJingH.SetText(arr[24]);
                    txtShuiBiaoSL.SetText(arr[25]);
                    txtXuKeZ.SetText(arr[26]);
                }
                else if (type == "export") {
                    btnActPerformExport.onClick();
                }
            }
            else {

            }
        }
        //function ASPxCallback1Complete(rs) {
        //    var arr = rs.split('|');
        //    var type = arr[0];
        //    var state = arr[1];
        //    if(state)
        //    if (type == "setinfo") {
                
        //        //txtBenYueSL.SetText(arr[25]);
        //    }

        //}
      

        function tab2gv1RowFocus()
        {
            if (gvGridTab2.GetFocusedRowIndex() != -1) {
                gvGrid2Tab2.PerformCallback(gvGridTab2.GetRowKey(gvGridTab2.GetFocusedRowIndex()));
            }
        }

        function XSorYC() {
            $("#divInfo").toggle();
            if ($("#divInfo").css('display') == 'none') {
                AdjustSize(220, gvShenJingXX);
            }
            else {
                AdjustSize(400, gvShenJingXX);
            }
        }
           
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            全年井信息查询
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
            <div style="display: none;">
                    <dx:ASPxButton ID="btnActPerform" ClientInstanceName="btnActPerform" runat="server" Text="ASPxButton" UseSubmitBehavior="false"></dx:ASPxButton>
                    <%--<dx:ASPxButton ID="btnActPerformExport" ClientInstanceName="btnActPerformExport" runat="server" Text="ASPxButton" UseSubmitBehavior="false"  OnClick="btnActPerformExport_Click"></dx:ASPxButton>--%>
                </div>
        </div>

        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div style="border: 1px solid #d0e4fe">
                        <table>
                            <tr>
                                <td colspan="2" rowspan="5" style="min-width: 150px; width: 20%;" valign="top">
                                    <table style="width: 100%">
                                        <tr>
                                            <td valign="top">
                                                <fieldset>
                                                    <legend>查询条件</legend>
                                                
                                                <table style="height: 270px; width: 98%;">

                                                    <tr>
                                                        <td style="width: 80px" align="right">用户号：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td align="right">用户名：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuM" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td align="right">用户地址：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuDZ" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td align="right">井编号：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtJingBianH" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td align="right">许可证号：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtXuKeZH" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td align="right">取水地点：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtQuShuiDZ" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td align="right">取水用途：
                                                        </td>
                                                        <td>
                                                            <dx:ASPxComboBox ID="cmbQuShuiYT" ClientInstanceName="cmbQuShuiYT" runat="server" ValueType="System.String" Width="100%">
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <tr>
                                                            <td align="right">行业分类：
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cmbHangYeLX" ClientInstanceName="cmbHangYeLX" runat="server" ValueType="System.String" Width="100%">
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td align="right">主管部门：
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cbmGuanLiBM" ClientInstanceName="cbmGuanLiBM" runat="server" Width="100%">
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td align="right">流域：
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cmbLiuYu" runat="server" ValueType="System.String" Width="100%">
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td align="right">水资源分区：
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cmbShuiZiY" runat="server" ValueType="System.String" Width="100%">
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td align="right">水利分片：
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cmbShuiLiFP" runat="server" ValueType="System.String" Width="100%">
                                                                    <Items>
                                                                    </Items>
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>


                                                        <tr>
                                                            <td align="right">深井水费：
                                                            </td>
                                                            <td>
                                                                <table style="width: 100%">
                                                                    <tr>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cmbShenJingSFTJ" runat="server" ValueType="System.String" Width="100%">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                                    <dx:ListEditItem Text=">" Value=">" />
                                                                                    <dx:ListEditItem Text=">=" Value=">=" />
                                                                                    <dx:ListEditItem Text="<" Value="<" />
                                                                                    <dx:ListEditItem Text="<=" Value="<=" />
                                                                                    <dx:ListEditItem Text="=" Value="=" />

                                                                                </Items>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtShenJingSF" Width="100%">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">层次：
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cmbCengCi" runat="server" ValueType="System.String" Width="100%">
                                                                    <Items>
                                                                        <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                        <dx:ListEditItem Text="2" Value="2" />
                                                                        <dx:ListEditItem Text="3" Value="3" />
                                                                        <dx:ListEditItem Text="4" Value="4" />
                                                                        <dx:ListEditItem Text="5" Value="5" />
                                                                        <dx:ListEditItem Text="6" Value="6" />
                                                                    </Items>
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">销井年月：
                                                            </td>
                                                            <td>
                                                                <table style="width: 100%">
                                                                    <tr>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cmbXiaoJingTJ1" runat="server" ValueType="System.String" Width="100%">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                                    <dx:ListEditItem Text=">" Value=">" />
                                                                                    <dx:ListEditItem Text=">=" Value=">=" />
                                                                                    <dx:ListEditItem Text="<" Value="<" />
                                                                                    <dx:ListEditItem Text="<=" Value="<=" />
                                                                                    <dx:ListEditItem Text="=" Value="=" />
                                                                                </Items>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtXiaoJingTJ1" Width="100%">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right"></td>
                                                            <td>
                                                                <table style="width: 100%">
                                                                    <tr>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cmbXiaoJingTJ2" runat="server" ValueType="System.String" Width="100%">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="" Value="" Selected="true" />
                                                                                    <dx:ListEditItem Text=">" Value=">" />
                                                                                    <dx:ListEditItem Text=">=" Value=">=" />
                                                                                    <dx:ListEditItem Text="<" Value="<" />
                                                                                    <dx:ListEditItem Text="<=" Value="<=" />
                                                                                    <dx:ListEditItem Text="=" Value="=" />
                                                                                </Items>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxTextBox runat="server" ID="txtXiaoJingTJ2" Width="100%">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>

                                                            </td>
                                                        </tr>
                                                </table>
                                                </fieldset>
                                            </td>

                                        </tr>
                                    </table>
                                </td>

                               
                                <td style="width: 8%" align="right"><span style="font-size: 12px;">环内环外：</span></td>
                                <td style="width: 15%">
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbHuanNeiHW" Width="100%" AutoPostBack="false">
                                            <Items>
                                                <dx:ListEditItem Text="" Value="" />
                                                <dx:ListEditItem Text="外环线内" Value="1" />
                                                <dx:ListEditItem Text="外环线外" Value="2" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width: 8%;" align="right"><span style="font-size: 12px;">行政区：</span></td>
                                <td style="width: 15%">
                                    <asp:Panel runat="server" ID="Panel2">
                                        <dx:ASPxComboBox runat="server" ID="cmbXingZhengQ" Width="60%">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="" Selected="true" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width: 9%;" align="right"><span style="font-size: 12px;">原井号：</span></td>
                                <td style="width: 15%">
                                    <dx:ASPxTextBox runat="server" ID="txtJingHao" Width="100%">
                                    </dx:ASPxTextBox>
                                </td>


                            </tr>
                            <tr>
                                <td align="right">井类型：</td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel3">
                                        <dx:ASPxComboBox runat="server" ID="cmbJLX" Width="100%">
                                            <Items>
                                                <dx:ListEditItem Text="" Value="" />
                                                <dx:ListEditItem Text="常用井" Value="1" />
                                                <dx:ListEditItem Text="采灌井" Value="2" />
                                                <dx:ListEditItem Text="专灌井" Value="3" />
                                                <dx:ListEditItem Text="矿泉井" Value="4" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td align="right">井性质：</td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel4">
                                        <dx:ASPxComboBox runat="server" ID="cmbJXZ" Width="100%">
                                            <Items>
                                                <dx:ListEditItem Text="" Value="" />
                                                <dx:ListEditItem Text="空状态" Value="1" />
                                                <dx:ListEditItem Text="备用井" Value="2" />
                                                <dx:ListEditItem Text="更新报废井" Value="3" />
                                                <dx:ListEditItem Text="更新井" Value="4" />
                                                <dx:ListEditItem Text="报废井" Value="5" />
                                                <dx:ListEditItem Text="填没井" Value="6" />
                                                <dx:ListEditItem Text="注销许可证" Value="7" />
                                                <dx:ListEditItem Text="注销井恢复使用" Value="8" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td align="right">井标记：</td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel5">
                                        <dx:ASPxComboBox runat="server" ID="cmbJBJ" Width="100%">
                                             <Items>
                                                <dx:ListEditItem Text="" Value="" />
                                                <dx:ListEditItem Text="空" Value="0" />
                                                <dx:ListEditItem Text="地热井" Value="1" />
                                                <dx:ListEditItem Text="咸潮井" Value="2" />
                                                <dx:ListEditItem Text="灌用平衡井" Value="3" />
                                                <dx:ListEditItem Text="应急供水井" Value="4" />
                                                <dx:ListEditItem Text="优水优用井" Value="5" />
                                                <dx:ListEditItem Text="民防战备井" Value="6" />
                                                <dx:ListEditItem Text="分质供水井" Value="7" />
                                            </Items>
                                        </dx:ASPxComboBox>

                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">水量：</td>
                                <td>
                                    <table style="width: 100%">
                                        <tr>
                                            <td>
                                                <dx:ASPxComboBox runat="server" ID="cmbTiaoJian" Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="" Value="" Selected="true" />
                                                        <dx:ListEditItem Text="普通采" Value="1" />
                                                        <dx:ListEditItem Text="采灌采" Value="2" />
                                                        <dx:ListEditItem Text="采灌灌" Value="3" />
                                                        <dx:ListEditItem Text="矿泉采" Value="4" />
                                                        <dx:ListEditItem Text="专灌" Value="5" />
                                                        <dx:ListEditItem Text="开采量" Value="10" />
                                                        <dx:ListEditItem Text="回灌量" Value="11" />
                                                        <dx:ListEditItem Text="总水量" Value="12" />
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td style="width: 50px">
                                                <dx:ASPxComboBox runat="server" ID="cmbTJ" Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="" Value="" Selected="true" />
                                                        <dx:ListEditItem Text=">" Value=">" />
                                                        <dx:ListEditItem Text=">=" Value=">=" />
                                                        <dx:ListEditItem Text="<" Value="<" />
                                                        <dx:ListEditItem Text="<=" Value="<=" />
                                                        <dx:ListEditItem Text="=" Value="=" />
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtShuiLiangTJ" Width="100%">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="right">水量年：</td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel7">
                                        <dx:ASPxComboBox runat="server" ID="cmbYear" Width="100%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td align="right">水量月：</td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel8">
                                        <dx:ASPxComboBox runat="server" ID="cmbMonth" Width="100%">
                                        </dx:ASPxComboBox>
                                    </asp:Panel>

                                </td>
                            </tr>
                            <tr>
                                <td colspan="6" align="right">
                                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click" UseSubmitBehavior="false">
                                         <ClientSideEvents Click="function(s,e){LoadPanel.SetText('正在查询...');LoadPanel.Show();}" />
                                    </dx:ASPxButton>
                                     <dx:ASPxButton runat="server" ID="btnExcel" Text="导出Excel" UseSubmitBehavior="false" AutoPostBack="false">
                                        <ClientSideEvents Click="function(s,e){btnExport.onClick();}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                          
                            <tr>
                                <td colspan="6" valign="top">
                                    <dx:ASPxPageControl ID="ASPxPageControl1" ClientInstanceName="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" AutoPostBack="false">
                                        <TabPages>
                                            <dx:TabPage Text="深井信息">
                                                <ContentCollection>
                                                    <dx:ContentControl>
                                                        <div>

                                                            <div>

                                                                <div style="border: 1px solid #d0e4fe; width: 100%;">
                                                                    <div id="img">
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div>
                                                                        <dx:ASPxGridView ID="gvShenJingXX"   ClientInstanceName="gvShenJingXX" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                                                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                                                            <Columns>
                                                                                <dx:GridViewDataTextColumn FieldName="S_JINGBH" Caption="井编号" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XUKEZHENGBH" Caption="许可证" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="200">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="用户地址" Width="200">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_JINGDIZ" Caption="取水地址" Width="200">
                                                                                </dx:GridViewDataTextColumn>
                                                                               
                                                                                <dx:GridViewDataTextColumn FieldName="I_CENG" Caption="层次" Width="50">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIMC" Caption="取水用途" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_FENLEIMC" Caption="行业分类" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQM" Caption="行政区名" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="HUANXIANBJ" Caption="环内环外" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="JINLX" Caption="井类型" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="JINXZ" Caption="井性质" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="JINBJ" Caption="井标记" Width="80">
                                                                                </dx:GridViewDataTextColumn>                                                                                
                                                                                <dx:GridViewDataTextColumn FieldName="S_LAOBIANH" Caption="原井号" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="BIAOSHU" Caption="表数" Width="50">
                                                                                </dx:GridViewDataTextColumn>
                                                                                
                                                                                 <dx:GridViewDataTextColumn FieldName="S_LIUYUMC" Caption="流域" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_SHUIZIYMC" Caption="水资源分区" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="S_SHUILIFPMC" Caption="水利分片" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENBH" Caption="主管部门号" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENMC" Caption="主管部门" Width="150">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_YEWUYMC" Caption="业务员名" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQBH" Caption="行政区号" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="S_SHUIZIYBH" Caption="水资源分区号" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="S_FENGPIANBH" Caption="水利分片号" Width="80">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_BEIZHU" Caption="备注" Width="200">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_KAISHINY" Caption="增井日期" Width="85">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_JIESHUNY" Caption="销井日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="D_JINGRQ" Caption="凿井日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="D_CAOZUORQ" Caption="修改日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XUKESLH" Caption="许可受理号" Width="85">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="D_XUKEQSSJ" Caption="许可起始日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="D_XUKEJSSJ" Caption="许可终止日期" Width="85" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="PTC" Caption="普通采" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="CGC" Caption="采灌采" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="CGG" Caption="采灌灌" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="KQC" Caption="矿泉采" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="ZG" Caption="专灌" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="KCL" Caption="开采量" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="HGL" Caption="回灌量" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="ZSL" Caption="总水量" Width="60">
                                                                                </dx:GridViewDataTextColumn>
                                                                            </Columns>
                                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="300 " />
                                                                            <%--<SettingsPager Mode="EndlessPaging" PageSize="100" />--%>
                                                                            <Settings ShowFooter="True" />
                                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="False" />
                                                                            <ClientSideEvents Init="function(s,e){AdjustSize(450,gvShenJingXX);}" FocusedRowChanged="function(s,e){rowClick();}" />
                                                                        </dx:ASPxGridView>
                                                                    </div>
                                                                    <div>
                                                                        <input type="button" id="yc" value="隐藏或显示详情" name="btnTest" onclick="XSorYC()" />
                                                                    </div>
                                                                    <br />
                                                                    <hr />

                                                                    <div id="divInfo">
                                                                        <table style="text-align: right; width: 100%;" border="0">
                                        <tr>
                                            <td style="width: 10%;"><span style="font-size: 12px;">用户号：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuH2" ClientEnabled="false" Width="80%" ClientInstanceName="txtYongHuH2"></dx:ASPxTextBox>
                                            </td>
                                            <td style="width: 10%;"><span style="font-size: 12px;">用户名：</span></td>
                                            <td colspan="3">
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuM2" ClientEnabled="false" Width="100%" ClientInstanceName="txtYongHuM2"></dx:ASPxTextBox>
                                            </td>
                                            <td style="width: 10%;"><span style="font-size: 12px;">环内环外：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtHuanNeiHW" ClientEnabled="false" Width="100%" ClientInstanceName="txtHuanNeiHW"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>

                                            <td><span style="font-size: 12px;">井编号：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txJingBianH" ClientEnabled="false" Width="80%" ClientInstanceName="txJingBianH"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">地址：</span></td>
                                            <td colspan="3">
                                                <dx:ASPxTextBox runat="server" ID="txtDiZhi" ClientEnabled="false" Width="100%" ClientInstanceName="txtDiZhi"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">行政区：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtXingZhengQ" ClientEnabled="false" Width="100%" ClientInstanceName="txtXingZhengQ"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td><span style="font-size: 12px;">原井号：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYuanJingH" ClientEnabled="false" Width="80%" ClientInstanceName="txtYuanJingH"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">许可证：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtXuKeZ" ClientEnabled="false" Width="80%" ClientInstanceName="txtXuKeZ"></dx:ASPxTextBox>
                                            </td>
                                            <td style="width: 10%;"><span style="font-size: 12px;">取水用途：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtQuShuiYT" ClientEnabled="false" Width="100%" ClientInstanceName="txtQuShuiYT"></dx:ASPxTextBox>
                                            </td>
                                            <td style="width: 10%;"><span style="font-size: 12px;">行业分类：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtHangYeFL" ClientEnabled="false" Width="100%" ClientInstanceName="txtHangYeFL"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td><span style="font-size: 12px;">井类型：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtJingLeiX" ClientEnabled="false" Width="80%" ClientInstanceName="txtJingLeiX"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">井性质：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtJingXingZ" ClientEnabled="false" Width="80%" ClientInstanceName="txtJingXingZ"></dx:ASPxTextBox>
                                            </td>
                                            <td style="width: 10%;"><span style="font-size: 12px;">井标记：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtJingBiaoJ" ClientEnabled="false" Width="100%" ClientInstanceName="txtJingBiaoJ"></dx:ASPxTextBox>
                                            </td>
                                            <td style="width: 10%;"><span style="font-size: 12px;">流域：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtLiuYu" ClientEnabled="false" Width="100%" ClientInstanceName="txtLiuYu"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 10%;"><span style="font-size: 12px;">业务员：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYeWuY" ClientEnabled="false" Width="80%" ClientInstanceName="txtYeWuY"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">管理部门：</span></td>
                                            <td colspan="3">
                                                <dx:ASPxTextBox runat="server" ID="txtGuanLiBM" ClientEnabled="false" Width="100%" ClientInstanceName="txtGuanLiBM"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">水资源分区：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtShuiZiYFQ" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiZiYFQ"></dx:ASPxTextBox>
                                            </td>

                                        </tr>
                                        <tr>
                                            <td><span style="font-size: 12px;">层次：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtCengCi" ClientEnabled="false" Width="80%" ClientInstanceName="txtCengCi"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">深度：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtShenDu" ClientEnabled="false" Width="80%" ClientInstanceName="txtShenDu"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">口径：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtKouJing" ClientEnabled="false" Width="80%" ClientInstanceName="txtKouJing"></dx:ASPxTextBox>
                                            </td>
                                            <td><span style="font-size: 12px;">水利分片：</span></td>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtShuiLiFP" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiLiFP"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="font-size: 12px;vertical-align:top;padding-top:4px"><span">水表数量：</span></td>
                                            <td style="font-size: 12px;vertical-align:top">
                                                <dx:ASPxTextBox runat="server" ID="txtShuiBiaoSL" ClientEnabled="false" Width="100%" ClientInstanceName="txtShuiBiaoSL"></dx:ASPxTextBox>
                                            </td>
                                            <td style="font-size: 12px;vertical-align:top;padding-top:4px"><span>本月水量：</span></td>
                                            <td style="font-size: 12px;vertical-align:top">
                                                <dx:ASPxTextBox runat="server" ID="txtBenYueSL" ClientEnabled="false" Width="100%" ClientInstanceName="txtBenYueSL"></dx:ASPxTextBox>
                                            </td>
                                            <td style="font-size: 12px;vertical-align:top;padding-top:4px"><span>备注：</span></td>
                                            <td colspan="3">
                                                <dx:ASPxMemo runat="server" ID="memoBeiZhu" ClientEnabled="false" Width="100%" Rows="6" ClientInstanceName="memoBeiZhu"></dx:ASPxMemo>
                                            </td>
                                        </tr>
                                    </table>
                                                                    </div>
                                                                </div>

                                                            </div>
                                                        </div>
                                                    </dx:ContentControl>
                                                </ContentCollection>
                                            </dx:TabPage>
                                            <dx:TabPage Text="深井全年用水情况">
                                                <ContentCollection>
                                                    <dx:ContentControl>
                                                        <div>
                                                            <dx:ASPxLabel ID="tab2ls1Count" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                            <dx:ASPxGridView ID="gvGridTab2" SettingsBehavior-AllowSort="true"  ClientInstanceName="gvGridTab2" runat="server" AutoGenerateColumns="true" KeyFieldName="S_JINGBH"
                                                                ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                                                <Columns>
                                                                    <dx:GridViewDataTextColumn FieldName="S_JINGBH" Caption="井编号" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="200">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_XUKEZHENGBH" Caption="许可证" Width="60">
                                                                    </dx:GridViewDataTextColumn>                                                                    
                                                                    <dx:GridViewDataTextColumn FieldName="JINLX" Caption="井类型" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="PTC" Caption="普通采" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="KQC" Caption="矿泉采" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="CGC" Caption="采灌采" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="KCL" Caption="开采量" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="CGG" Caption="采灌灌" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ZG" Caption="专灌" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="HGL" Caption="回灌量" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ZSL" Caption="总水量" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="SJSF" Caption="深井水费" Width="80" PropertiesTextEdit-DisplayFormatString="0.00">
                                                                    </dx:GridViewDataTextColumn>
                                                                     <dx:GridViewDataTextColumn FieldName="S_QUSHUIMC" Caption="取水用途" Width="80">
                                                                    </dx:GridViewDataTextColumn>
                                                                     <dx:GridViewDataTextColumn FieldName="S_FENLEIMC" Caption="行业类别" Width="80">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_LAOBIANH" Caption="原井号" Width="80">
                                                                    </dx:GridViewDataTextColumn> 
                                                                                <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="用户地址" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_JINGDIZ" Caption="取水地址" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                               
                                                                                <dx:GridViewDataTextColumn FieldName="I_CENG" Caption="层次" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQM" Caption="行政区名" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="HUANXIANBJ" Caption="环内环外" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="JINXZ" Caption="井性质" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="JINBJ" Caption="井标记" Width="0">
                                                                                </dx:GridViewDataTextColumn>                
                                                                                <dx:GridViewDataTextColumn FieldName="BIAOSHU" Caption="表数" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                
                                                                                 <dx:GridViewDataTextColumn FieldName="S_LIUYUMC" Caption="流域" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_SHUIZIYMC" Caption="水资源分区" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="S_SHUILIFPMC" Caption="水利分片" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENBH" Caption="主管部门号" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENMC" Caption="主管部门" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_YEWUYMC" Caption="业务员名" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQBH" Caption="行政区号" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="S_SHUIZIYBH" Caption="水资源分区号" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="S_FENGPIANBH" Caption="水利分片号" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_BEIZHU" Caption="备注" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_KAISHINY" Caption="增井日期" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_JIESHUNY" Caption="销井日期" Width="0" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="D_JINGRQ" Caption="凿井日期" Width="0" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="D_CAOZUORQ" Caption="修改日期" Width="0" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                <dx:GridViewDataTextColumn FieldName="S_XUKESLH" Caption="许可受理号" Width="0">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="D_XUKEQSSJ" Caption="许可起始日期" Width="0" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>
                                                                                 <dx:GridViewDataTextColumn FieldName="D_XUKEJSSJ" Caption="许可终止日期" Width="0" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                                </dx:GridViewDataTextColumn>                                                                  
                                                                </Columns>
                                                                <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                                                <%--<SettingsPager Mode="EndlessPaging" PageSize="100" />--%>
                                                                <Settings ShowFooter="True" />
                                                                <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                                <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                                <ClientSideEvents Init="function(s,e){AdjustSize(400,gvGridTab2);}" FocusedRowChanged="function(s,e){tab2gv1RowFocus();}" />
                                                            </dx:ASPxGridView>
                                                        </div>
                                                       
                                                        <dx:ASPxGridView ID="gvGrid2Tab2" SettingsBehavior-AllowSort="false"   OnCustomCallback="gvGrid2Tab2_CustomCallback" KeyFieldName="S_M" SettingsBehavior-ProcessSelectionChangedOnServer="true" ClientInstanceName="gvGrid2Tab2" runat="server" Width="100%" >
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="S_M" Caption="月份" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I1" Caption="普通采" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I3" Caption="矿泉采" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I2" Caption="采灌采" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I0" Caption="开采量" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="J1" Caption="采灌灌" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="J2" Caption="专灌" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="J0" Caption="回灌量" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="K0" Caption="总水量" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="N0" Caption="深井水费" Width="10%" PropertiesTextEdit-DisplayFormatString="0.00">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>     
                                                            <ClientSideEvents Init="function(s,e){AdjustSize(450,gvGrid2Tab2);}" />                                                     
                                                        </dx:ASPxGridView>
                                                        
                                                    </dx:ContentControl>
                                                </ContentCollection>
                                            </dx:TabPage>
                                            <dx:TabPage Text="深井月用水情况">
                                                <ContentCollection>
                                                    <dx:ContentControl>
                                                        <dx:ASPxLabel ID="tab3ls1Count" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                        <dx:ASPxGridView ID="gvGridTab3" SettingsBehavior-AllowSort="true"  ClientInstanceName="gvGridTab3" runat="server" AutoGenerateColumns="true" KeyFieldName="S_JINGBH"
                                                             Settings-ShowVerticalScrollBar="true" Width="100%" >
                                                            <Columns>
                                                                    <dx:GridViewDataTextColumn FieldName="S_JINGBH" Caption="井编号" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="200">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_XUKEZHENGBH" Caption="许可证" Width="60">
                                                                    </dx:GridViewDataTextColumn>                                                                    
                                                                    <dx:GridViewDataTextColumn FieldName="JINLX" Caption="井类型" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="PTC" Caption="普通采" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="KQC" Caption="矿泉采" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="CGC" Caption="采灌采" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="KCL" Caption="开采量" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="CGG" Caption="采灌灌" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ZG" Caption="专灌" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="HGL" Caption="回灌量" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ZSL" Caption="总水量" Width="60">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="SJSF" Caption="深井水费" Width="80" PropertiesTextEdit-DisplayFormatString="0.00">
                                                                    </dx:GridViewDataTextColumn>
                                                                     <dx:GridViewDataTextColumn FieldName="S_QUSHUIMC" Caption="取水用途" Width="80">
                                                                    </dx:GridViewDataTextColumn>
                                                                     <dx:GridViewDataTextColumn FieldName="S_FENLEIMC" Caption="行业类别" Width="80">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="S_LAOBIANH" Caption="原井号" Width="80">
                                                                    </dx:GridViewDataTextColumn>                                                                   
                                                                </Columns>
                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                                            <%--<SettingsPager Mode="EndlessPaging" PageSize="100" />--%>
                                                            <Settings ShowFooter="True" />
                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                            <ClientSideEvents Init="function(s,e){AdjustSize(150,gvGridTab3);}" />
                                                        </dx:ASPxGridView>
                                                    </dx:ContentControl>
                                                </ContentCollection>
                                            </dx:TabPage>
                                            <dx:TabPage Text="深井月用水汇总">
                                                <ContentCollection>
                                                    <dx:ContentControl>
                                                        <table style="width:100%">
                                                            <tr>
                                                                <td style="width:100px" align="right">
                                                                    汇总类型：
                                                                </td>
                                                                <td style="width:130px">
                                                                    <dx:ASPxComboBox runat="server"  ID="cmbHuiZongLX" >
                                                                        <Items>
                                                                            <dx:ListEditItem Text="按行政区" Value="1" Selected="true" />
                                                                            <dx:ListEditItem Text="按环线内外" Value="2" />
                                                                            <dx:ListEditItem Text="按取水用途" Value="3" />
                                                                            <dx:ListEditItem Text="按行业分类" Value="4" />
                                                                            <dx:ListEditItem Text="按井类型" Value="5" />

                                                                            <dx:ListEditItem Text="按井状态" Value="6" />
                                                                            <dx:ListEditItem Text="按井标记" Value="7" />
                                                                            <dx:ListEditItem Text="按层次" Value="8" />
                                                                            <dx:ListEditItem Text="按主管部门" Value="9" />
                                                                            <dx:ListEditItem Text="按流域" Value="10" />

                                                                            <dx:ListEditItem Text="按水资源分区" Value="11" />
                                                                            <dx:ListEditItem Text="按水利分片" Value="12" />
                                                                        </Items>
                                                                    </dx:ASPxComboBox>
                                                                </td>
                                                                <td>&nbsp;&nbsp;<dx:ASPxLabel ID="tab4ls1Count" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel></td>
                                                            </tr>
                                                        </table>
                                                        <dx:ASPxGridView ID="gvGridTab4" SettingsBehavior-AllowSort="false"  ClientInstanceName="gvGridTab4" runat="server" AutoGenerateColumns="true" KeyFieldName="S_VALUE"
                                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" >
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="S_VALUE" Caption="编号" Width="60">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_TEXT" Caption="" Width="100">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="L1" Caption="井数" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="L2" Caption="表数" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I1" Caption="普通采" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I2" Caption="矿泉采" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I3" Caption="采灌采" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I0" Caption="开采量" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="J1" Caption="采灌灌" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="J2" Caption="专灌" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="J0" Caption="回灌量" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="K0" Caption="总水量" Width="70">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="N0" Caption="深井水费" Width="70" PropertiesTextEdit-DisplayFormatString="0.00">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="M0" Caption="水资源水费" Width="70" PropertiesTextEdit-DisplayFormatString="0.00">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" />
                                                            <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                            <Settings ShowFooter="True" />
                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                            <ClientSideEvents Init="function(s,e){AdjustSize(250,gvGridTab4);}" />
                                                        </dx:ASPxGridView>
                                                    </dx:ContentControl>
                                                </ContentCollection>
                                            </dx:TabPage>
                                        </TabPages>
                                    </dx:ASPxPageControl>
                                </td>
                            </tr>
                        </table>


                    </div>
                </div>

            </ContentTemplate>
        </asp:UpdatePanel>
         <div>
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
           <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false" ClientVisible="false">
            </dx:ASPxButton>
        </div>   
    </form>
</body>
</html>
